[Java][Spring] Ensure EnumConverterConfiguration.java is generated when interfaceOnly=true in Spring Generator#21000
Conversation
…y=true in Spring Generator
|
This feature is breaking code, please identify it as breaking in Release v7.13.0. Where a Enum Converter with specific behaviour has already been defined, now generated EnumConverterConfiguration redefine another Converter and takes precedence in the Spring Context, overriding the specific behaviour with its generated, generic behaviour. |
|
This breaks our code since we run the generator multiple times within one module due to several specs which causes the compiler to fail because now the Converters exist in multiple source roots with the same package. I am struggling to get rid of this now. Am I supposed to provide an empty "supportingFiles" list? We never missed this EnumConverters, so why make this a default. If some people want to have it, why not just add a flag in the config-options. |
|
Hello, I have the same issue, project completely broken because of multiple EnumConverterConfiguration.java with same package. Any news about this issue ? |
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)@cachescrubber (2022/02) @welshm (2022/02) @MelleD (2022/02) @atextor (2022/02) @manedev79 (2022/02) @javisst (2022/02) @borsch (2022/02) @banlevente (2022/02) @Zomzog (2022/09) @martin-mfg (2023/08)
Fix this issue:
EnumConverterConfiguration.javais generated wheninterfaceOnly=truein Spring Generator #20999